home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / source / blt / blt32.exe / [0] next >
Encoding:
Text File  |  1994-02-28  |  11.6 KB  |  346 lines

  1. define S_WHITE1024     5
  2. #define S_WHITE2048     6
  3. #define S_WHITEVOICE    7
  4.  
  5. int     WINAPI WaitSoundState(int);
  6.  
  7. /* WaitSoundState() constants */
  8. #define S_QUEUEEMPTY    0
  9. #define S_THRESHOLD     1
  10. #define S_ALLTHRESHOLD  2
  11.  
  12. int     WINAPI SyncAllVoices(void);
  13. int     WINAPI CountVoiceNotes(int);
  14.  
  15. /* Accent Modes */
  16. #define S_NORMAL        0
  17. #define S_LEGATO        1
  18. #define S_STACCATO      2
  19.  
  20. /* Error return values */
  21. #define S_SERDVNA       (-1)
  22. #define S_SEROFM        (-2)
  23. #define S_SERMACT       (-3)
  24. #define S_SERQFUL       (-4)
  25. #define S_SERBDNT       (-5)
  26. #define S_SERDLN        (-6)
  27. #define S_SERDCC        (-7)
  28. #define S_SERDTP        (-8)
  29. #define S_SERDVL        (-9)
  30. #define S_SERDMD        (-10)
  31. #define S_SERDSH        (-11)
  32. #define S_SERDPT        (-12)
  33. #define S_SERDFQ        (-13)
  34. #define S_SERDDR        (-14)
  35. #define S_SERDSR        (-15)
  36. #define S_SERDST        (-16)
  37.  
  38. #endif  /* NOSOUND */
  39.  
  40. /****** Comm support ******************************************************/
  41.  
  42. #ifndef NOCOMM
  43.  
  44. #define NOPARITY        0
  45. #define ODDPARITY       1
  46. #define EVENPARITY      2
  47. #define MARKPARITY      3
  48. #define SPACEPARITY     4
  49.  
  50. #define ONESTOPBIT      0
  51. #define ONE5STOPBITS    1
  52. #define TWOSTOPBITS     2
  53.  
  54. #define IGNORE          0
  55. #define INFINITE        0xFFFF
  56.  
  57. /* Error Flags */
  58. #define CE_RXOVER       0x0001
  59. #define CE_OVERRUN      0x0002
  60. #define CE_RXPARITY     0x0004
  61. #define CE_FRAME        0x0008
  62. #define CE_BREAK        0x0010
  63. #define CE_CTSTO        0x0020
  64. #define CE_DSRTO        0x0040
  65. #define CE_RLSDTO       0x0080
  66. #define CE_TXFULL       0x0100
  67. #define CE_PTO          0x0200
  68. #define CE_IOE          0x0400
  69. #define CE_DNS          0x0800
  70. #define CE_OOP          0x1000
  71. #define CE_MODE         0x8000
  72.  
  73. #define IE_BADID        (-1)
  74. #define IE_OPEN         (-2)
  75. #define IE_NOPEN        (-3)
  76. #define IE_MEMORY       (-4)
  77. #define IE_DEFAULT      (-5)
  78. #define IE_HARDWARE     (-10)
  79. #define IE_BYTESIZE     (-11)
  80. #define IE_BAUDRATE     (-12)
  81.  
  82. /* Events */
  83. #define EV_RXCHAR       0x0001
  84. #define EV_RXFLAG       0x0002
  85. #define EV_TXEMPTY      0x0004
  86. #define EV_CTS          0x0008
  87. #define EV_DSR          0x0010
  88. #define EV_RLSD         0x0020
  89. #define EV_BREAK        0x0040
  90. #define EV_ERR          0x0080
  91. #define EV_RING         0x0100
  92. #define EV_PERR         0x0200
  93. #define EV_CTSS         0x0400
  94. #define EV_DSRS         0x0800
  95. #define EV_RLSDS        0x1000
  96. #define EV_RingTe       0x2000
  97. #define EV_RINGTE       EV_RingTe
  98.  
  99. /* Escape Functions */
  100. #define SETXOFF         1
  101. #define SETXON          2
  102. #define SETRTS          3
  103. #define CLRRTS          4
  104. #define SETDTR          5
  105. #define CLRDTR          6
  106. #define RESETDEV        7
  107.  
  108. #define LPTx            0x80
  109.  
  110. #if (WINVER >= 0x030a)
  111.  
  112. /* new escape functions */
  113. #define GETMAXLPT       8
  114. #define GETMAXCOM       9
  115. #define GETBASEIRQ      10
  116.  
  117. /* Comm Baud Rate indices */
  118. #define CBR_110         0xFF10
  119. #define CBR_300         0xFF11
  120. #define CBR_600         0xFF12
  121. #define CBR_1200        0xFF13
  122. #define CBR_2400        0xFF14
  123. #define CBR_4800        0xFF15
  124. #define CBR_9600        0xFF16
  125. #define CBR_14400       0xFF17
  126. #define CBR_19200       0xFF18
  127. #define CBR_38400       0xFF1B
  128. #define CBR_56000       0xFF1F
  129. #define CBR_128000      0xFF23
  130. #define CBR_256000      0xFF27
  131.  
  132. /* notifications passed in low word of lParam on WM_COMMNOTIFY messages */
  133. #define CN_RECEIVE      0x0001
  134. #define CN_TRANSMIT     0x0002
  135. #define CN_EVENT        0x0004
  136.  
  137. #endif  /* WINVER >= 0x030a */
  138.  
  139. typedef struct tagDCB
  140. {
  141.     BYTE Id;
  142.     UINT BaudRate;
  143.     BYTE ByteSize;
  144.     BYTE Parity;
  145.     BYTE StopBits;
  146.     UINT RlsTimeout;
  147.     UINT CtsTimeout;
  148.     UINT DsrTimeout;
  149.  
  150.     UINT fBinary        :1;
  151.     UINT fRtsDisable    :1;
  152.     UINT fParity        :1;
  153.     UINT fOutxCtsFlow   :1;
  154.     UINT fOutxDsrFlow   :1;
  155.     UINT fDummy         :2;
  156.     UINT fDtrDisable    :1;
  157.  
  158.     UINT fOutX          :1;
  159.     UINT fInX           :1;
  160.     UINT fPeChar        :1;
  161.     UINT fNull          :1;
  162.     UINT fChEvt         :1;
  163.     UINT fDtrflow       :1;
  164.     UINT fRtsflow       :1;
  165.     UINT fDummy2        :1;
  166.  
  167.     char XonChar;
  168.     char XoffChar;
  169.     UINT XonLim;
  170.     UINT XoffLim;
  171.     char PeChar;
  172.     char EofChar;
  173.     char EvtChar;
  174.     UINT TxDelay;
  175. } DCB;
  176. typedef DCB FAR* LPDCB;
  177.  
  178. #if (defined(STRICT) | (WINVER >= 0x030a))
  179.  
  180. typedef struct tagCOMSTAT
  181. {
  182.     BYTE status;
  183.     UINT cbInQue;
  184.     UINT cbOutQue;
  185. } COMSTAT;
  186.  
  187. #define CSTF_CTSHOLD    0x01
  188. #define CSTF_DSRHOLD    0x02
  189. #define CSTF_RLSDHOLD   0x04
  190. #define CSTF_XOFFHOLD   0x08
  191. #define CSTF_XOFFSENT   0x10
  192. #define CSTF_EOF        0x20
  193. #define CSTF_TXIM       0x40
  194.  
  195. #else   /* (STRICT | WINVER >= 0x030a) */
  196.  
  197. /* NOTE: This structure declaration is not ANSI compatible! */
  198. typedef struct tagCOMSTAT
  199. {
  200.     BYTE fCtsHold  :1;
  201.     BYTE fDsrHold  :1;
  202.     BYTE fRlsdHold :1;
  203.     BYTE fXoffHold :1;
  204.     BYTE fXoffSent :1;
  205.     BYTE fEof      :1;
  206.     BYTE fTxim     :1;
  207.     UINT cbInQue;
  208.     UINT cbOutQue;
  209. } COMSTAT;
  210.  
  211. #endif  /* !(STRICT | WINVER >= 0x030a */
  212.  
  213. int     WINAPI BuildCommDCB(LPCSTR, DCB FAR*);
  214.  
  215. int     WINAPI OpenComm(LPCSTR, UINT, UINT);
  216. int     WINAPI CloseComm(int);
  217.  
  218. int     WINAPI ReadComm(int, void FAR*, int);
  219. int     WINAPI WriteComm(int, const void FAR*, int);
  220. int     WINAPI UngetCommChar(int, char);
  221. int     WINAPI FlushComm(int, int);
  222. int     WINAPI TransmitCommChar(int, char);
  223.  
  224. int     WINAPI SetCommState(const DCB FAR*);
  225. int     WINAPI GetCommState(int, DCB FAR*);
  226. int     WINAPI GetCommError(int, COMSTAT FAR* );
  227.  
  228. int     WINAPI SetCommBreak(int);
  229. int     WINAPI ClearCommBreak(int);
  230.  
  231. UINT FAR* WINAPI SetCommEventMask(int, UINT);
  232. UINT    WINAPI GetCommEventMask(int, int);
  233.  
  234. LONG    WINAPI EscapeCommFunction(int, int);
  235.  
  236. #if (WINVER >= 0x030a)
  237. BOOL    WINAPI EnableCommNotification(int, HWND, int, int);
  238.  
  239. #endif  /* WINVER >= 0x030a */
  240.  
  241. #endif  /* NOCOMM */
  242.  
  243. /****** String formatting support *******************************************/
  244.  
  245. int     WINAPI wvsprintf(LPSTR lpszOut, LPCSTR lpszFmt, const void FAR* lpParams);
  246.  
  247. int FAR CDECL wsprintf(LPSTR lpszOut, LPCSTR lpszFmt, ...);
  248.  
  249.  
  250. /****** Driver support ******************************************************/
  251.  
  252. #if (WINVER >= 0x030a)
  253.  
  254. #ifndef NODRIVERS
  255.  
  256. DECLARE_HANDLE(HDRVR);
  257.  
  258. typedef LRESULT (CALLBACK* DRIVERPROC)(DWORD, HDRVR, UINT, LPARAM, LPARAM);
  259.  
  260. /* Driver messages */
  261. #define DRV_LOAD            0x0001
  262. #define DRV_ENABLE          0x0002
  263. #define DRV_OPEN            0x0003
  264. #define DRV_CLOSE           0x0004
  265. #define DRV_DISABLE         0x0005
  266. #define DRV_FREE            0x0006
  267. #define DRV_CONFIGURE       0x0007
  268. #define DRV_QUERYCONFIGURE  0x0008
  269. #define DRV_INSTALL         0x0009
  270. #define DRV_REMOVE          0x000A
  271. #define DRV_EXITSESSION     0x000B
  272. #define DRV_EXITAPPLICATION 0x000C
  273. #define DRV_POWER           0x000F
  274. #define DRV_NOTIFYMSG          0x0010
  275. /*#define DRV_QUERYENDSESSION 0x0010      */
  276. /*#define DRV_EXITSESSIONCANCELLED 0x0011 */
  277.  
  278. #define DRV_RESERVED        0x0800
  279. #define DRV_USER            0x4000
  280.  
  281. /* LPARAM of DRV_CONFIGURE message */
  282. typedef struct tagDRVCONFIGINFO
  283. {
  284.     DWORD   dwDCISize;
  285.     LPCSTR  lpszDCISectionName;
  286.     LPCSTR  lpszDCIAliasName;
  287. } DRVCONFIGINFO;
  288. typedef DRVCONFIGINFO NEAR* PDRVCONFIGINFO;
  289. typedef DRVCONFIGINFO FAR* LPDRVCONFIGINFO;
  290.  
  291. /* Supported return values for DRV_CONFIGURE message */
  292. #define DRVCNF_CANCEL       0x0000
  293. #define DRVCNF_OK           0x0001
  294. #define DRVCNF_RESTART      0x0002
  295.  
  296. /* Supported lParam1 of DRV_EXITAPPLICATION notification */
  297. #define DRVEA_NORMALEXIT    0x0001
  298. #define DRVEA_ABNORMALEXIT  0x0002
  299.  
  300. LRESULT WINAPI DefDriverProc(DWORD dwDriverIdentifier, HDRVR driverID, UINT message, LPARAM lParam1, LPARAM lParam2);
  301.  
  302. HDRVR   WINAPI OpenDriver(LPCSTR szDriverName, LPCSTR szSectionName, LPARAM lParam2);
  303. LRESULT WINAPI CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2);
  304.  
  305. LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message, LPARAM lParam1, LPARAM lParam2);
  306.  
  307. HINSTANCE WINAPI GetDriverModuleHandle(HDRVR hDriver);
  308.  
  309. HDRVR   WINAPI GetNextDriver(HDRVR, DWORD);
  310.  
  311. /* GetNextDriver flags */
  312. #define GND_FIRSTINSTANCEONLY   0x00000001
  313.  
  314. #define GND_FORWARD             0x00000000
  315. #define GND_REVERSE             0x00000002
  316.  
  317. typedef struct tagDRIVERINFOSTRUCT
  318. {
  319.     UINT    length;
  320.     HDRVR   hDriver;
  321.     HINSTANCE hModule;
  322.     char    szAliasName[128];
  323. } DRIVERINFOSTRUCT;
  324. typedef DRIVERINFOSTRUCT FAR* LPDRIVERINFOSTRUCT;
  325.  
  326. BOOL    WINAPI GetDriverInfo(HDRVR, DRIVERINFOSTRUCT FAR*);
  327.  
  328. #endif  /* !NODRIVERS */
  329. #endif  /* WINVER >= 0x030a */
  330. #endif  /* NOUSER */
  331.  
  332. #ifndef RC_INVOKED
  333. #pragma pack()          /* Revert to default packing */
  334. #endif  /* RC_INVOKED */
  335.  
  336. #ifdef __cplusplus
  337. }                       /* End of extern "C" { */
  338. #endif /* __cplusplus */
  339.  
  340. #endif  /* _INC_WINDOWS */
  341. :,Xrá╦╣v              OΦ■ (t╦╚╦╕v<c$╚0/Öµ(á╦╠ïî[Hu    /    return TRUE;■ 4(╚╦0╠╕t)          ■ (╠X╠╕u              OΓ(0╠Σ═╖uσ:\c0/"0    #define pdd ((LPDELETEITEMSTRUCT)lParam)(îu═              0    #define pdi ((LPDRAWITEMSTRUCT)lParam)Qz(░╠d═              4    #define pmi ((LPMEASUREITEMSTRUC  @ ` Ç@└É P@Ép
  342. 00É└` Pp@░É@░≡0 @`É≡"#└└&Ç3@,@Ç,P╨,P -Pp-@░-@≡-@0.@p.P└.0≡.@0/`É/`≡/`P00Ç00░00α0010@2PÉ70"
  343. └8└&    Ç9α`:p╨<≡└?╨É@αpAá BP`B`└CÉPD0ÇD@└D` E0E└D
  344. ≡G
  345. Iá└J K@PK`K0└K╨KαK@ L0L0`L ÇL áL░L└LÇ@M0 O0PP0ÇP╨PQ░R``S≡PT pTpαT`@U0pU`╨U@V 0VpáV`W  W0PW@ÉX0└X└Y0≡Y└░Zp [0P[░\``\p\ É\ ░\@≡\ ]0@]░≡]░á^@α^≡^└░_└_p0apáapb░└b αb c  c░╨c╨áe └e αeÉpf@░f@≡f@0gÉ└gp0hα`jpkpαkÉpl└0mPÇm0░mp nPpnP└n≡░oPwPPwá
  346. ≡z0 {≡}Éá}áÇÇ üÇ